﻿#include "CmdSetHeatMapChangeTracerProperty.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSetHeatMapChangeTracerProperty::CmdSetHeatMapChangeTracerProperty()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSetHeatMapChangeTracerProperty::~CmdSetHeatMapChangeTracerProperty()
    {
    }

    bool CmdSetHeatMapChangeTracerProperty::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_setHeatMapChangeTracerProperty(m_mainWindowId, m_name, m_symbolStyle, m_size, m_penR, m_penG, m_penB, m_penA, m_tracerID);
        return true;
    }

    void CmdSetHeatMapChangeTracerProperty::undo()
    {
    }

    void CmdSetHeatMapChangeTracerProperty::redo()
    {
        // execute();
    }

    void CmdSetHeatMapChangeTracerProperty::setHeatMapChangeTracerProperty(int mainWindowId, QString name, int tracerStyle, int size, int penR, int penG, int penB, int penA, int tracerID)
    {
        m_mainWindowId = mainWindowId;
        m_name = name;
        m_symbolStyle = tracerStyle;
        m_size = size;
        m_penR = penR;
        m_penG = penG;
        m_penB = penB;
        m_penA = penA;
        m_tracerID = tracerID;
    }

} // namespace PostCommand
